import http from '../../utils/request'
// 管理员列表
const AdminList=(params:any)=>{
    return http.get('visit/admin/list',params)
}
// 启用/不启用管理员
const AdminChangestatus=(data:any)=>{
    return http.post('visit/admin/changestatus',data)
}
// 部门列表
const DepartmentList=(params?:any)=>{
    return http.get('visit/department/list',params)
}
// 添加管理员
const AdminAdd=(data:any)=>{
    return http.post('visit/admin/add',data)
}
// 删除管理员
const AdminDel=(params:any)=>{
    return http.get('visit/admin/del',params)
}
// 修改管理员
const AdminEdit=(data:any)=>{
    return http.post('visit/admin/edit',data)
}
export default{
    AdminList,
    AdminChangestatus,
    DepartmentList,
    AdminAdd,
    AdminDel,
    AdminEdit
}